package com.mvc4g.example.shareModel.client.action;

import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;
import com.mvc4g.example.shareModel.client.Constants;
import com.mvc4g.example.shareModel.client.view.templates.RootTemplate;
import com.mvc4g.example.shareModel.client.view.views.AbstractView;

public class RestartAction implements ActionInterface, Constants {

	@Override
	public void execute(Controller controller, Object form) {
		((RootTemplate) controller.getView(ROOT_TEMPLATE)).restart();
		((AbstractView) controller.getView(VIEW_A)).restart();
		((AbstractView) controller.getView(VIEW_B)).restart();
		((AbstractView) controller.getView(VIEW_C)).restart();

	}

}
